package com.beta.nfc_beta;

import android.graphics.Bitmap;
import android.view.View;
import android.widget.ImageView;
import android.widget.SimpleAdapter.ViewBinder;

public class MyViewBinder implements ViewBinder{

	@Override
	public boolean setViewValue(View view, Object data,
			String textRepresentation) {
		if(view instanceof ImageView  && data instanceof Bitmap){  
            ImageView iv = (ImageView) view;  
          
            iv.setImageBitmap((Bitmap) data);  
            return true;  
        }else  
        return false;
	}

}
